package cn.wolfcode.p2p.website.controller;

import cn.wolfcode.p2p.base.query.IpLogQueryObject;
import cn.wolfcode.p2p.base.service.IIpLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IpLogController {

    @Autowired
    private IIpLogService ipLogService;
    @RequestMapping("/ipLog")
    public String iplogList(@ModelAttribute("qo") IpLogQueryObject qo , Model model){
        model.addAttribute("pageInfo",ipLogService.queryPage(qo));
        return "/iplog_list";
    }
}
